package scene

import (
	"container/list"
	"fmt"
	"my-gameserver-go/logic/scene/ai"
)

const (
	monsterType = 1
)

type ISceneObj interface {
	OnPositionChange()
}

type SceneObj struct {
	Id       int64
	ModelId  int32
	Position *Point
	Birth    Point
	SceneId  int64
}
type Person struct {
	*SceneObj
	FightState  int32
	PersonState int32
	PreStepTime int64
	Roads       list.List
}

type Monster struct {
	*ai.PersonAiCtl
	*Person
}

func NewMonster(p *Person, g *GameScene) *Monster {
	ctl := ai.NewPersonAiCtl()
	return &Monster{ctl, p}
}

func (m Monster) OnPositionChange() {
	fmt.Println("OnPositionChange")
}

type Player struct {
	*Person
}
